package com.ghy.seckill.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ghy.seckill.entity.PmsSkuInfo;
import com.ghy.seckill.service.PmsSkuInfoService;
import com.ghy.seckill.mapper.PmsSkuInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class PmsSkuInfoServiceImpl extends ServiceImpl<PmsSkuInfoMapper, PmsSkuInfo>
implements PmsSkuInfoService{
    @Autowired
    private PmsSkuInfoMapper pmsSkuInfoMapper;
    @Override
    public PmsSkuInfo skuById(Long skuId) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("sku_id",skuId);
        PmsSkuInfo pmsSkuInfo = pmsSkuInfoMapper.selectById(skuId);
        return pmsSkuInfo;
    }
}
